package com.xlhj.boot.common;

import lombok.Getter;

/**
 * @author: liucaijing
 * @description: ResultCode
 * @date: 2021/6/21 8:55
 */
@Getter
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author: caijliu
 * @description: 统一返回枚举
 * @data: 23/06/2021 9:35
 */
@Getter
@AllArgsConstructor
public enum ResultCode {

    SUCCESS(200, "成功!"),
    FAIL(400, "失败!");

    private Integer code;

    private String message;

    ResultCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    ResultCode() {

    }
}
